package cn.enilu.flash.service.task.job;

import cn.enilu.flash.dao.park.ParkingCarRefRepository;
import cn.enilu.flash.service.park.ParkingTaskService;
import cn.enilu.flash.service.task.JobExecuter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description
 * @Author Spark
 * @Date Created in (2019/12/12 10:05)
 * @Version v1.0
 * @Modify
 **/
@Component
public class ExecParkingCarRefJob extends JobExecuter {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private ParkingTaskService parkingTaskService;

    @Override
    public void execute(Map<String, Object> dataMap) throws Exception {
        logger.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> start");
        parkingTaskService.modify();
        logger.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> end");
    }
}
